package com.study.webapp.spring;


import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.context.support.XmlWebApplicationContext;

public class applicationTest {

    public static void main(String[] args) {
        ApplicationContext classPathXml =
                new ClassPathXmlApplicationContext("bean.xml");

        ApplicationContext context =
                new FileSystemXmlApplicationContext("bean.xml");

        ApplicationContext context1 = new XmlWebApplicationContext();

        ApplicationContext context2 = new AnnotationConfigApplicationContext(applicationTest.class);

        ApplicationContext context3 = new AnnotationConfigWebApplicationContext();

    }
}
